package com.example.service;

import com.example.pojo.User;
import com.mongodb.client.result.DeleteResult;
import com.mongodb.client.result.UpdateResult;

import java.util.List;

/**
 * @program: springboot_course
 * @description: 服务层接口
 * @author: ChenZhiXiang
 * @create: 2019-06-10 15:49
 **/
public interface UserService {

     Object saveUser();

     DeleteResult deleteUser(Long  id) ;

     List<User> findUser(String userName,String note,int skip,int limit);

     UpdateResult updateUser(Long id,String userName,String note) ;

     User getUser(Long id);
}
